package com.neusoft.elmboot.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.bean.Role;
import com.neusoft.elmboot.service.RoleService;

/**
 * 
 * @author chens
 *
 */
@RestController
@RequestMapping("/sys/role")
public class RoleController {

	@Autowired
	private RoleService roleService;

	@RequestMapping("list")
	public List<Role> findList() {
		List<Role> list = new ArrayList<Role>();

		list = roleService.findByPager(null);

		return list;
	}
}
